﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPages/PrimaryMaster.Master" AutoEventWireup="true" CodeBehind="ViewOrganizations.aspx.cs" Inherits="ArchivingDataWebForms.Pages.Organization.WebFormOrganization" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radcomboboxclass">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTreeListOrgs" UpdatePanelCssClass=""></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadTreeListOrgs">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTreeListOrgs" UpdatePanelCssClass=""></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <ul class="UlLayout">
        <li class="paddingTop paddingRight">
            <telerik:radcombobox  id="radcomboboxclass" runat="server" AutoPostback="true" OnSelectedIndexChanged="radcomboboxclass_SelectedIndexChanged" >
                <Items>
                    <telerik:RadComboBoxItem Text="داخلية" Value="0" Selected="true" />
                    <telerik:RadComboBoxItem Text="خارجية" Value="1" />
                </Items>
            </telerik:radcombobox>
        </li>
        <li class="paddingTop paddingRight">
            <telerik:RadTreeList ID="RadTreeListOrgs" runat="server" SkinID="RadTreeListDefault" DataKeyNames="Organization_ID" ParentDataKeyNames="Organization_Parent_ID" AutoGenerateColumns="false" AllowLoadOnDemand="true"  OnNeedDataSource="RadTreeListOrgs_NeedDataSource" OnChildItemsDataBind="RadTreeListOrgs_ChildItemsDataBind" OnItemDataBound="RadTreeListOrgs_ItemDataBound" OnInsertCommand="RadTreeListOrgs_InsertCommand" OnUpdateCommand="RadTreeListOrgs_UpdateCommand" OnDeleteCommand="RadTreeListOrgs_DeleteCommand">
                <Columns>
                    <telerik:TreeListBoundColumn DataField="Organization_ID" DataType="System.Int64" UniqueName="Organization_ID" HeaderText="الرقم" Display="False" ReadOnly="true">
                    </telerik:TreeListBoundColumn>
                    <telerik:TreeListTemplateColumn HeaderText="النوع" Display="true" ReadOnly="false">
                        <ItemTemplate>
                            <%# Eval("Type_Of_Organization_NameAR") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox ID="RadComboBoxOrgtype" runat="server" SkinID="RadComboBoxDefault"></telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:TreeListTemplateColumn>
                    <telerik:TreeListBoundColumn DataField="Organization_Number" DataType="System.String" UniqueName="Organization_Number" HeaderText="الترميز" Display="true" EditFormColumnIndex="0">
                    </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Organization_Name_AR" DataType="System.String" UniqueName="Organization_Name_AR" HeaderText="الاسم" Display="true" EditFormColumnIndex="0">
                    </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Type_of_Organization_ID" DataType="System.Int64" UniqueName="Type_of_Organization_ID" Display="False" ReadOnly="true">
                    </telerik:TreeListBoundColumn>
                    <telerik:TreeListEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" CancelText="الغاء" EditText="تحرير" UpdateText="حفظ">
                    </telerik:TreeListEditCommandColumn>
                    <telerik:TreeListButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="40px" ConfirmDialogType="RadWindow" ConfirmText="هل انت متاكد من عملية الحذف ؟" ConfirmTitle="حذف" Text="حذف">
                    </telerik:TreeListButtonColumn>
                </Columns>
            </telerik:RadTreeList>
        </li>
    </ul>
</asp:Content>
